package com.yuw;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Student {
    // 属性
    private String stuName;
    private int stuAge;
    private String stuNo;

    // 组合关系
    private Teacher teacher;

    // 集合类型
    private List<Object> lstCourse;
    Map map = new HashMap<>();
    // 其他集合类型：set map props ，参考api自行扩展
    /*参考spring-api：core核心章节的 ： 1.4.2. Dependencies and Configuration in Detail 节*/

    public Student() {
    }

    public Student(String stuName, int stuAge, String stuNo) {
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuNo = stuNo;
    }

    // 行为方法
    public void doStuding() {
        System.out.println(" I am studing...");
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                ", stuNo='" + stuNo + '\'' +
                ", teacher=" + teacher +
                ", lstCourse=" + lstCourse +
                '}';
    }

    public List<Object> getLstCourse() {
        return lstCourse;
    }

    public void setLstCourse(List<Object> lstCourse) {
        this.lstCourse = lstCourse;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
